<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>图纸表单</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" th:href="@{/css/pure/pure-min.css}" />
<!--[if lte IE 8]>
   <link rel="stylesheet" href="https://unpkg.com/purecss@0.6.1/build/grids-responsive-old-ie-min.css">
<![endif]-->
<!--[if gt IE 8]><!-->
    <link rel="stylesheet" th:href="@{/css/pure/grids-responsive-min.css}" />
<!--<![endif]-->
</head>
<body>
<form class="pure-form pure-form-aligned" th:action="@{/api/drawing/save}" method="post" enctype="multipart/form-data">
	<fieldset>
		<div class="pure-control-group">
			<label for="name">名称</label>
			<input id="name" name="name" type="text" placeholder="图纸名称" />
		</div>
		<div class="pure-control-group">
			<label for="title">英文/缩写</label>
			<input id="title" name="abbreviation" type="text" placeholder="英文/缩写" />
		</div>
		<div class="pure-control-group">
			<label for="type">分类</label>
			<select id="type" name="type">
				<option value="1">电路</option>
				<option value="2">工程</option>
				<option value="3">其他</option>
			</select>
		</div>		
		<div class="pure-control-group">
			<label for="file">图片</label>
			<input id="file" name="file" type="file" />
		</div>
		<div class="pure-control-group">
			<label for="remark">备注：</label>
			<textarea id="remark" name="remark" placeholder="备注"></textarea>
		</div>
		<div class="pure-controls">
			<button type="submit" class="pure-button pure-button-primary">Submit</button>
		</div>		
	</fieldset>
</form>
</body>
</html>